import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'Login',
      //component: Login
      component:()=>import('../Views/Login')//按需要加载
    }
    ,{
      
      path: '/Dep',
      name: 'Dep',
      //component: Login
      component:()=>import('../Views/Dep/Dep')//按需要加载
    }
    ,{
      
      path: '/Index',
      name: 'Index',
      //component: Login
      component:()=>import('../Views/Index'),//按需要加载
      children:[{
        path: 'Dep',
        name: 'Dep',
        //component: Login
        component:()=>import('../Views/Dep/Dep')//按需要加载

      }]
    }
  ]
})
